package designPattern.decorator;

public class ConcreteDecoratorSing extends Decorator {

	protected ConcreteDecoratorSing(Component component) {
		super(component);
	}

	/**商业逻辑，对原始构件功能的扩展*/
    public void go() {    
        super.go();
        System.out.println(sing());// 执行扩展功能
    }
 
    private String sing() {
        return "唱歌";
    }
}
